<?php

use yii\db\Schema;
use yii\db\Migration;

class m180205_113949_vam_create_add_subadtype extends Migration
{
    public function up()
    {
        return $this->addColumn('{{%creative}}', 'subadtype', 'int(11) NOT NULL DEFAULT 0 COMMENT "创意子类型1小图2大图3三图" after ad_type');
    }

    public function down()
    {
        echo "m180205_113949_vam_create_add_subadtype cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
